<template>
    <div>
        <div>我是登录界面</div>
        <button @click="dd">登录</button>
    </div>
</template>

<script>
export default {
    methods: {
        dd() {
            this.$store.commit('change')
            if(this.$store.state.loginStatus===true){
 this.$router.push({
                path: '/lyout'
            });
        }
            }
           
    }
};
</script>

<style></style>
